<cpanel include="../../config.php">

<?

/***************************************************************************
 *                                 parked_domains_manage.php
 *                            -------------------
 *   Begin                : Thursday, April 16, 2005
 *   Copyright            : (C) 2005 Point and Code
 *   Domain               : http://www.pointandcode.com/
 *   Email                : support@pointandcode.com
 *   Version              : 1.0.1
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

$html_root_path = '../../';
include $root_path.'common.php';
$page_title = $lang['parked_domains'];
include $root_path.'page_header.php';

$current_domains_with_junk = <<<EOFpacman
<cpanel Park="cplistparked()">
EOFpacman;

$array_of_domains_with_junk = array();
$array_of_domains = explode('<br>', $current_domains_with_junk);

$i = 0;
foreach ($array_of_domains as $row) {
	if (trim($row) != '') {
		$template->assign_block_vars('current_domains_row', array(
			'ROWCLASS' => ($i%2) ? $template_cfg['class_row_1'] : $template_cfg['class_row_2'],
			'DOMAIN' => $row,
			'U_DELETE' => 'parked_domains_delete_done.php?domain='.$row,
		));
		$i++;
	};
};

$template->assign_vars(array(
	'U_ADD_ACTION' => "parked_domains_add_done.php",
	
	'L_PARKED_DOMAINS' => $lang['parked_domains'],
	'L_INTRO' => $lang['parked_domains_intro'],
	'L_DOMAIN' => $lang['domain'],
	'L_ACTIONS' => $lang['actions'],
	'L_DELETE' => $lang['delete'],
	'L_ADD_PARKED_DOMAIN' => $lang['add_parked_domain'],
	'L_DOMAIN_NAME' => $lang['domain_name'],
	'L_ADD_DOMAIN' => $lang['add_domain'],
	'L_DOMAIN_HINTS' => $lang['domain_hints'],
	'L_PARKED_DOMAIN_HINTS' => $lang['parked_domain_hints'],
	)
);

$template->set_filenames(array(
	'body' => $root_path.$template_path.'domains/parked_domains_manage.tpl')
);

//
// Woohoo! All done!
//
$template->pparse('body');




include $root_path.'page_tail.php';




?>